#!/bin/bash
pkgs=`cat unresolvable_reson_pkgs`
for p in $pkgs
do
    for rpm_dir in functionrely_aarch64 compliertools_aarch64
    do
        res=`find ${rpm_dir} -iname "$p*"`
        if [ ! -z "$res" ];then
            for rpm_pkg in $res
            do
                cp ${rpm_pkg} new_rely_aarch64/aarch64/:full/
            done 
        fi
    done  
    for rpm_dir in functionrely_x86_64 compliertools_x86_64
    do
        res=`find ${rpm_dir} -iname "$p*"`
        if [ ! -z "$res" ];then
            for rpm_pkg in $res
            do
                cp ${rpm_pkg} new_rely_x86_64/x86_64/:full/
            done 
        fi
    done  
done
